<{if $mydownloadsadcodes.all}>
<{$mydownloadsadcodes.all}>
<{elseif $mydownloadsadcodes.topten}>
<{$mydownloadsadcodes.topten}>
<{/if}>
<br /><br />
<{if $mydownloadsshowlogo}>
<div align="center"><{$mydownloadslogoimage}></div><br />
<{/if}>
<{if $mydownloadsshowsearch}>
<div align="center">
<form action="<{$xoops_url}>/search.php" method="get">
<input type="text" id="query" name="query" size="30" maxlength="255" value="" />
<select id="andor" name="andor" size="1">
<option value="AND" selected="selected"><{$lang_all}></option>
<option value="OR"><{$lang_any}></option>
<option value="exact"><{$lang_exact}></option>
</select>
<input type="hidden" name="mids[]" value="<{$module_id}>" />
<input type="hidden" id="action" name="action" value="results" />
<input type="submit" class="formButton" name="submit" id="submit" value="<{$lang_search}>" />
</form>
</div>
<br />
<{/if}>
<{if $catarray.toolbar}>
<div align="center"><{$catarray.toolbar}></div><br />
<{/if}>
<{if $mydownloadsshowthemechanger}>
<table cellspacing="0" width="100%">
  <tr>
   <td align="right">
	<form action="<{$xoops_requesturi}>" method="post">
	<b><{$lang_themechanger}></b><{$mydownloadsthemeoption}>
	</form>
  </td>
  </tr>
</table>
<{/if}>
<br />
<div align="right">
<a id="itemtop">
<a href="#itembottom"><img src="<{$mydownloads_imgurl}>/bottom.gif" alt="<{$lang_gotobottom}>" title="<{$lang_gotobottom}>"  /></a>
</div>
<!-- Start ranking loop -->
<{foreach name=mdloop item=ranking from=$rankings}>
<table class="outer">
  <tr>
    <th align="center"><{$ranking.title}> (<{$lang_sortby}>)</th>
    <th width="8%" align="center">
    <a href="javascript:mdtoggleEffect('<{$mydownloads_imgurl}>', 'resizemdtop10block<{$smarty.foreach.mdloop.iteration}>', 'mdsizetop10image<{$smarty.foreach.mdloop.iteration}>')"><img id="mdsizetop10image<{$smarty.foreach.mdloop.iteration}>" src="<{$mydownloads_imgurl}>/minimize.gif"  alt="<{$lang_minimizeblock}>" title="<{$lang_minimizeblock}>" /></a>
    </th>
  </tr>
  <tr><td colspan="2">
<div id="resizemdtop10block<{$smarty.foreach.mdloop.iteration}>" style="display: block;">
<table width="100%">
  <tr>
    <td width='7%' class="head"><{$lang_rank}></td>
    <td width='28%' class="head"><{$lang_title}></td>
    <td width='40%' class="head"><{$lang_category}></td>
    <td width='8%' class="head" align='center'><{$lang_hits}></td>
    <td width='9%' class="head" align='center'><{$lang_rating}></td>
    <td width='8%' class="head" align='right'><{$lang_vote}></td>
  </tr>

  <!-- Start files loop -->
  <{foreach item=file from=$ranking.file}>

  <tr>
    <td class="even"><{$file.rank}></td>
    <td class="odd"><a href='singlefile.php?cid=<{$file.cid}>&amp;lid=<{$file.id}>'><{$file.title}></a></td>
    <td class="even"><{$file.category}></td>
    <td class="odd" align='center'><{$file.hits}></td>
    <td class="even" align='center'><{$file.rating}></td>
    <td align='right'><{$file.votes}></td>
  </tr>

  <{/foreach}>
  <!-- End links loop-->
  </table>
 </td></tr>
</table>
<br />
<{/foreach}>
<!-- End ranking loop -->
<div align="right">
<a id="itembottom">
<a href="#itemtop"><img src="<{$mydownloads_imgurl}>/top.gif" alt="<{$lang_gototop}>" title="<{$lang_gototop}>"  /></a>
</div>